#include "dataconfig.h"
#include <QVector>

QVector<QVector<int>> getArrData(int arr[4][4]){
    QVector<QVector<int>> v;
    for (int i = 0; i < 4; i++) {
        QVector<int> v1;
        for (int j = 0; j < 4; j++) {
            v1.push_back(arr[i][j]);
        }
        v.push_back(v1);
    }
    return v;
}

DataConfig::DataConfig(QObject *parent)
    : QObject{parent}
{
    int arr1[4][4] = {
                      {1,1,1,1},
                      {1,1,0,1},
                      {1,0,0,0},
                      {1,1,0,1}
                      };
    int arr2[4][4] = {
                      {1,0,1,1},
                      {0,0,1,1},
                      {1,1,0,0},
                      {1,1,0,1},
                      };
    int arr3[4][4] = {
                      {0,0,0,0},
                      {0,1,1,0},
                      {0,1,1,0},
                      {0,0,0,0},
                      };
    int arr4[4][4] = {
                      {0,1,1,1},
                      {1,0,0,1},
                      {1,0,1,1},
                      {1,1,1,1},
                      };
    int arr5[4][4] = {
                      {0,1,1,1},
                      {1,0,0,1},
                      {1,0,1,1},
                      {1,1,1,1},
                      };
    int arr6[4][4] = {
                      {1,0,0,1},
                      {0,1,1,0},
                      {0,1,1,0},
                      {1,0,0,1},
                      };
    int arr7[4][4] = {
                      {0,1,1,1},
                      {1,0,1,1},
                      {1,1,0,1},
                      {1,1,1,0},
                      };
    int arr8[4][4] = {
                      {0,1,0,1},
                      {1,0,0,0},
                      {0,0,0,1},
                      {1,0,1,0},
                      };
    int arr9[4][4] = {
                      {1,0,1,0},
                      {1,0,1,0},
                      {0,0,1,0},
                      {1,0,0,1},
                      };
    int arr10[4][4] = {
                       {1,0,1,1},
                       {1,1,0,0},
                       {0,0,1,1},
                       {1,1,0,1},
                       };
    int arr11[4][4] = {
                       {0,1,1,0},
                       {1,0,0,1},
                       {1,0,0,1},
                       {0,1,1,0},
                       };
    int arr12[4][4] = {
                       {0,1,1,0},
                       {0,0,0,0},
                       {1,1,1,1},
                       {0,0,0,0},
                       };
    int arr13[4][4] = {
                       {0,1,1,0},
                       {0,0,0,0},
                       {0,0,0,0},
                       {0,1,1,0},
                       };
    int arr14[4][4] = {
                       {1,0,1,1},
                       {0,1,0,1},
                       {1,0,1,0},
                       {1,1,0,1},
                       };
    int arr15[4][4] = {
                       {0,1,0,1},
                       {1,0,0,0},
                       {1,0,0,0},
                       {0,1,0,1},
                       };
    int arr16[4][4] = {
                       {0,1,1,0},
                       {1,1,1,1},
                       {1,1,1,1},
                       {0,1,1,0},
                       };
    int arr17[4][4] = {
                       {0,1,1,1},
                       {0,1,0,0},
                       {0,0,1,0},
                       {1,1,1,0},
                       };
    int arr18[4][4] = {
                       {0,0,0,1},
                       {0,0,1,0},
                       {0,1,0,0},
                       {1,0,0,0},
                       };
    int arr19[4][4] = {
                       {0,1,0,0},
                       {0,1,1,0},
                       {0,0,1,1},
                       {0,0,0,0},
                       };
    int arr20[4][4] = {
                       {0,0,0,1},
                       {0,0,1,0},
                       {0,1,0,0},
                       {1,0,0,0},
                       };
    mData.insert(1,getArrData(arr1));
    mData.insert(2,getArrData(arr2));
    mData.insert(3,getArrData(arr3));
    mData.insert(4,getArrData(arr4));
    mData.insert(5,getArrData(arr5));
    mData.insert(6,getArrData(arr6));
    mData.insert(7,getArrData(arr7));
    mData.insert(8,getArrData(arr8));
    mData.insert(9,getArrData(arr9));
    mData.insert(10,getArrData(arr10));
    mData.insert(11,getArrData(arr11));
    mData.insert(12,getArrData(arr12));
    mData.insert(13,getArrData(arr13));
    mData.insert(14,getArrData(arr14));
    mData.insert(15,getArrData(arr15));
    mData.insert(16,getArrData(arr16));
    mData.insert(17,getArrData(arr17));
    mData.insert(18,getArrData(arr18));
    mData.insert(19,getArrData(arr19));
    mData.insert(20,getArrData(arr20));

}

